package com.ansatsing.factory.method;
/**
 * 武器类型:短剑 、斧头、长枪、未知
 * @author sunyq
 *
 */
public enum WeaponType {
	//跟WeaponType(String title)对应，而且下面这行必须在类体的第一行
	SHORT_SWORD("short sword"),AXE("axe"),SPEAR("spear"),UNDEFINED("");
	private String title;
	WeaponType(String title){
		this.title = title;
	}
	@Override
	public String toString() {
		return title;
	}
	
}
